<!DOCTYPE html>
<?php
include 'proses/konek.php';
session_start();
if(!isset($_SESSION['admin']))
   {   
  ?><script language="javascript">alert('anda blm login');
document.location='index.html'</script><?php 
}
else
{
$username = $_SESSION['admin'];
}
?>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>SB Admin 2 - Bootstrap Admin Theme</title>

    <!-- Bootstrap Core CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="css/plugins/metisMenu/metisMenu.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="css/sb-admin-2.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="font-awesome-4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="css/jquery.fancybox.css" rel="stylesheet">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>

    <div id="wrapper">

        <!-- Navigation -->
        <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="dashboard.php">SB Admin v2.0</a>
            </div>
            <?php
            include 'proses/menustatic.php';
            $menustatic = new menustatic;
            $menustatic->menus();
             ?>
            <!-- /.navbar-static-side -->
        </nav>

        <!-- Page Content -->
        <div id="page-wrapper">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-lg-12">
                    <h1><strong>LAYOUT</strong></h1>
                    <br>
                    <br>
                    <h3>Slide Show</h3>
                        <?php
                        $sql=mysql_query("select isi from atribut where nm_attrib='carousel'");
                        $car=mysql_fetch_assoc($sql);
                        $img=unserialize($car['isi']);
                        ?>
                        <div class="input-append">
                        <form class="form-horizontal" action="proses/layout.php" method="post">
                        <div class="form-group">    
                            <label>Image 1</label>
                            <input id="file1" name="img1" type="text" value="<?php echo $img[0] ?>">
                            <a href="../plugin/filemanager/dialog.php?type=2&field_id=file1" class="btn iframe-btn btn-success" type="button" name="select1">select</a>
                        </div>
                        <div class="form-group"> 
                        <label>Image 2</label>
                        <input id="file2" name="img2" type="text" value="<?php echo $img[1] ?>">
                        <a href="../plugin/filemanager/dialog.php?type=2&field_id=file2" class="btn iframe-btn btn-success" type="button" name="select1">select</a>
                        </div>
                        <div class="form-group"> 
                        <label>Image 3</label>
                        <input id="file3" name="img3" type="text" value="<?php echo $img[2] ?>">
                        <a href="../plugin/filemanager/dialog.php?type=2&field_id=file3" class="btn iframe-btn btn-success" type="button" name="select1">select</a>    
                        </div>

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button class="btn btn-primary" type="submit" name="carousel" id="save">save</button>
                            </div>
                        </div>
                        </form>

                        <h3>ICON</h3>
                        <form class="form-horizontal" action="proses/layout.php" method="POST">
                            
                            <div class="form-group"> 
                            <label>Icon</label>
                            <?php 
                            $sql=mysql_query("SELECT isi FROM atribut WHERE nm_attrib='icon'");
                            $icon=mysql_fetch_assoc($sql);
                            ?>
                            <input id="icon" name="img" type="text" value="<?php echo $icon['isi'];?>">
                            <a href="../plugin/filemanager/dialog.php?type=2&field_id=icon" class="btn iframe-btn btn-success" type="button" name="select1">select</a>    
                            </div>
                            <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button class="btn btn-primary" type="submit" name="icon" id="save">save</button>
                            </div>
                        </div>
                        </form>
                        </div>
                    </div>
                    <!-- /.col-lg-12 -->
                </div>
                <!-- /.row -->
            </div>
            <!-- /.container-fluid -->
        </div>
        <!-- /#page-wrapper -->

    </div>
    <!-- /#wrapper -->

    <!-- jQuery -->
    <script src="js/jquery.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="js/bootstrap.min.js"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script src="js/plugins/metisMenu/metisMenu.min.js"></script>

    <!-- Custom Theme JavaScript -->
<script src="js/sb-admin-2.js"></script>
<script src="js/jquery.fancybox.pack.js"></script>
<script type="text/javascript">
$('.iframe-btn').fancybox({ 
'width'     : 900,
'height'    : 600,
'type'      : 'iframe',
'autoScale'     : false
});
</script>
</body>

</html>
